/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import Taro, { Component } from '@tarojs/taro'

// project
import { CPage, CContent, CHeader, CFooter, CFloat, CAround, CBetween, CCenter, CRow, CWrap, CLine, CHand, CItemX, CItemY, CText, CLabel, CSvg, CImage, CButton, CColumn } from '../../../library/comp';
import { Base64, Gen, Time, Zip, Session, Storage, Http, Toast } from '../../../library/func';
import Icon from '../../../project/style/icon';

/******************************************************************************************
 * Export Class
 ******************************************************************************************/

export default class CommentList extends Component {

	/*------------------------------------------------------------------------------------
	 * 初始化
	 *-----------------------------------------------------------------------------------*/
	constructor(props) {
		super(props);

		/**
		 * state
		 */
		this.state = {
			
		}
	}


	/*------------------------------------------------------------------------------------
	 * 渲染
	 *-----------------------------------------------------------------------------------*/
	render () {
        console.log('梁倩=========================',this.props.data)
		return (
			<CRow bg='#fff' mt='20'>
                <CColumn pa='30'>
                    <CRow mb='20'>
                        <CImage w='60' h='60' src={this.props.data.avatar} mr='20' ra='30' oh />
                        <CHand size='24'>{this.props.data.nick}</CHand>
                    </CRow>
                    <CHand size='24' lh='24' color='#4e4e4e'>{this.props.data.content}</CHand>
                    <CWrap>
                        { this.props.data.images.length != 0 &&
                            this.props.data.images.map( item => {
                                return (
                                    <CImage w='220' h='220' mr='20' mt='20' src={item.set_image} />
                                )
                            })
                        }
                    </CWrap>
                    <CRow>
                        <CHand size='24' color='#a6a6a6' mt='30'>{this.props.data.time}</CHand>
                    </CRow>
                </CColumn>
            </CRow>
		)
	}
}


